package com.example.test.dao;

import com.example.test.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    // 主键查询
    User selectByPrimaryKey(Integer id);

    List<User> getAllUser();

    List<User> list(@Param("username") String username);
}
